package zl.osimall.common.service;

import zl.osimall.common.bean.Cart;
import zl.osimall.common.exception.SteduException;

import java.util.List;

public interface CartService {
    public boolean add(Cart cart) throws SteduException;
    public boolean delete(Integer id, Integer userId) throws SteduException;
    public Boolean update(Integer cartId, Integer count, Integer userId) throws SteduException;
    public List<Cart> selectByUserId(Integer userId);

    public List<Cart> selectByIds(Integer[] ids, Integer userId) throws SteduException;
}
